<?php
	header('content-type:text/html;charset=utf-8');
	$link = @mysql_connect('localhost','root','');

	if(!$link){
		die('数据库连接失败！');
	}
	mysql_query('set names utf8');
	mysql_select_db('st');
	$sql = 'select * from table_ad';
	$result = mysql_query($sql,$link);
	$table_ad = array();
	while ($row = mysql_fetch_assoc($result)) {
		$table_ad[] = $row;
	}
	
	

	$sql = 'select * from jianjie';
	$result = mysql_query($sql,$link);
	$jianjie = array();
	while ($jj = mysql_fetch_assoc($result)) {
		$jianjie[] = $jj;	
	}
	
	
	$sql = 'select * from product where pdSize="大"';
    $result = mysql_query($sql,$link);

	$product = array();
	while ($row = mysql_fetch_assoc($result)) {
		$product[] = $row;
	}
	$sql = 'select * from product where pdSize="小"';
    $result = mysql_query($sql,$link);

	$product2 = array();
	while ($row = mysql_fetch_assoc($result)) {
		$product2[] = $row;
	}
	
	$sql="SELECT * FROM index_conceot";
    $result = mysql_query($sql,$link);
	$sc = array();
	 while($rows=mysql_fetch_assoc($result)) {
		 
		 $sc[]=$rows;
	 }
		
    $sql = 'select * from cheng';
    $result = mysql_query($sql,$link);
	
	
	$cheng = array();
	while ($row = mysql_fetch_assoc($result)) {
		$cheng[] = $row;
	}
	
	$sql="SELECT * FROM index_news";
    $result = mysql_query($sql,$link);
	$news = array();
	 while($rows=mysql_fetch_assoc($result)) {
		 
		 $news[]=$rows;
	 }
		

	define('APP', 'st');
	require 'index_html.php';	

?>
